package com.xbx.eduservice.controller;

import org.springframework.web.bind.annotation.*;
import com.xbx.commonutils.R;
@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin //解决跨域问题
public class EduTeacherLoginController {
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }

    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=387264399,2368088084&fm=26&gp=0.jpg");
    }
}
